#ifndef QGRAPHESCENE_H
#define QGRAPHESCENE_H
#include<QtGui>


#include"biparti.h"


class QGrapheScene : public QGraphicsScene
 {
     Q_OBJECT

 public:
     QGrapheScene (QWidget *parent = 0);
    ~QGrapheScene();

 public slots:


        void nouveau(int nb, int delt,int mode);
        void dessiner();
        void dessiner_sous_graphe(int c1,int c2);
        void clearGraphe();

 private slots:

        void dessinerSommets(Graphe *g);
        void dessinerAretes(Graphe * g);

 signals:



 private:

        Biparti *graphe;
        Graphe *sous_graphe;

 public:
        Graphe* getGraphe();
        void setGraphe(Biparti *g);
        void setBrush(QPen*,int);
 };
#endif























